<?php

namespace app\common\model;

class SiteLink extends \think\Model
{
    protected $table = 'db_site_link';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'name' => 'varchar',
        'url' => 'varchar',
        'site_id' => 'int',
        'member_id' => 'int',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型site
     */
    public function site()
    {
        return $this->belongsTo(Site::class );
    }
}
